package net.st.controller.data;

import net.st.meta.SearchDataMeta;
import net.st.service.SearchDataService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class DeleteController extends Controller {

	private SearchDataService service = new SearchDataService();

	private SearchDataMeta meta = SearchDataMeta.get();

	@Override
	public Navigation run() throws Exception {
		service.delete(asKey(meta.key), asLong(meta.version));
		return redirect(basePath);
	}
}